<?php
$link = @mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($dbuser);
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
?>